div {
    background-color: rgb(27, 39, 205);
    width: 200px;
    height: 200px;
    transition: all 1s;
}
.xxs:hover {
    transform: rotatex(90deg)rotateY(90deg)rotateZ(90deg);
    transform: rotate3d(0.75, 0.75, 0.75, 120deg);
}